package com.yaosheng.thread.jvm;

/**
 * Created by yaosheng on 2021/7/14.
 */
public class InvokeDynamicTest {

    public static void main(String[] args) {

        I i = C::n;
        I i1 = C::n;
        I i2 = C::n;
        I i4 = () -> {
            C.n ();
        };

        System.out.println (i.getClass ());
        System.out.println (i1.getClass ());
        System.out.println (i2.getClass ());
        System.out.println (i4.getClass ());
    }

    @FunctionalInterface
    public static interface I{
        void m();
    }

    public static class C{
        public static void n(){
            System.out.println ("Hello");
        }
    }
}
